<?php
\App\admin\Service\OA::load();

use JMessage\JMessage;
use JMessage\IM\User;
use JMessage\IM\Report;
use App\Models\User\UserModel;
use Illuminate\Support\Facades\Route;
use App\Models\HezuoguanxiModel;
use App\Services\Search\Search_gsModel;
use App\Services\Search\SearchService;
 //   Search_gsModel::where([])->delete();

    $s=new SearchService;
     $s->delData();
     $s->chuliGs();
     $s->chuliGc();
      $s->chuliGr();











exit;

echo "测试看看123AAAAAAAAAAAAAAAA";
echo "测试看看123AAAAAAAAAAAAAAAA";
echo "测试看看123AAAAAAAAAAAAAAAA";
echo "测试看看123AAAAAAAAAAAAAAAA";
echo "测试看看123AAAAAAAAAAAAAAAA";
echo "测试看看123AAAAAAAAAAAAAAAA";
echo "测试看看123AAAAAAAAAAAAAAAA";
exit;
    \App\Services\Jiguang\JMessageApi::SendMsg(74,'这是管理员');










exit;

var_dump(request()->cookie('token'));


exit;


$routes = Route::getRoutes();




foreach($routes as $key=>$route) {

   //  if($key==7){
        echo $route->uri;echo "\t";
      //   print_r($route->action);
        if(isset($route->action['controller'])){
             echo($route->action['controller']);
        }
       /// print_r($route->action);//exit;  ['controller']
        echo "\r\n";
   //  }
    /*
    echo $route->uri;echo "\r\n";
   print_r($route->methods);*/


}








exit;
/*
$ff=\App\Services\Jiguang\JMessageApi::updatePassword(66,'12345678910');

print_r($ff);

exit;





exit;





















$appKey = 'ebc58098e670c47189b05396';
$masterSecret = 'f5f03abfc9cf44b535cd5293';
$client = new JMessage($appKey, $masterSecret, [ 'disable_ssl' => true ]);
$user = new User($client);

$alluser=UserModel::get();
foreach($alluser as $vo){
    echo $username='mc_'.$vo->id;echo "\t";
    if($vo->name==''){
        $vo->name='mc_'.$vo->id;
    }
    /*
    $v=$user->update($username,[
        'nickname'=>$vo->name
    ]);
* /
    var_dump($vo->name);echo "\r\n";
}

exit;



$appKey = 'ebc58098e670c47189b05396';
$masterSecret = 'f5f03abfc9cf44b535cd5293';
$client = new JMessage($appKey, $masterSecret, [ 'disable_ssl' => true ]);




///$r=$user->register($username, $password);


$alluser=UserModel::get();
foreach($alluser as $vo){
    echo $username='mc_'.$vo->id;echo "\t";
    $pass=$vo->created_at;
    if($vo->updated_at){
        $pass=$vo->updated_at;
    }
    $pass=md5($pass);
    echo $pass;
    echo "\r\n";
    $r=$user->register($username, $pass);
    print_r($r);
    echo "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
}








exit();



$random_str='123456789';
$timestamp=time().'123';
$signature = md5('appkey='.$appKey.'&timestamp='.$timestamp.'&random_str='.$random_str.'&key='.$masterSecret);


var_dump($random_str,$timestamp,$signature);
exit;

$report = new Report($client);

$response = $report->getUserMessages('songshuai', 100, '2019-11-9 1:10:10', '2019-11-9 20:10:10');

print_r($response);








exit();*/